package online.longzipeng.cinemasys.service.impl;

import online.longzipeng.cinemasys.entity.Resources;
import online.longzipeng.cinemasys.entity.RoleResources;
import online.longzipeng.cinemasys.mapper.RoleResourcesMapper;
import online.longzipeng.cinemasys.service.RoleResourcesService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import online.longzipeng.cinemasys.vo.role.RoleResourcesSaveVO;
import online.longzipeng.cinemasys.vo.role.RoleResourcesUpdateVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lzp
 * @since 2021-04-09
 */
@Service
public class RoleResourcesServiceImpl extends ServiceImpl<RoleResourcesMapper, RoleResources> implements RoleResourcesService {

    @Override
    public void add(RoleResources roleResources) {
        save(roleResources);
    }

    @Override
    public void updateRoleResources(RoleResources roleResources) {
        updateById(roleResources);
    }
}
